﻿using System.Linq;
using System.Web.Mvc;
using SC2ProArena.Domain.Model.Players;

namespace SC2ProArena.Interfaces.Controllers
{
	public static class PlayersConverter
	{
		public static PlayerInfoViewModel ToViewModel(this Player player)
		{
			return new PlayerInfoViewModel(player.FirstName,
				player.LastName, player.NickName);
		}
	}
}
